<?php

$cars = array("Volvo","BMW","Ioyota");
echo $cars[1];
$cary[2] = "Audi";


echo "<pre>";
print_r($cars);
echo count($cars);

//$carsl = ["Volvo","BMW","Ioyota"];
//echo $cars[0];
echo "<hr/>";
foreach ($cars as $value)  {
    echo $value ."<br/>";
}


$message = array(
    'pic' => "images/2.jpg",
    'name' => "avatar",
    'content' => '天天好心情11111 <span> (来自火星"女侠"的留言)</span>',
    'sex' => 'male'
);

foreach ($message as $key => $value) {
    echo    $key . '=>'. $value."<br/>";
}


?>